<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位问题</title>
    <style>
        .outer {
            height: 300px;
            width: 300px;
            border: hotpink solid 1px;
            /* position: relative; */
            top: 30px;
            left: 30px;
        }
        
        .inner {
            height: 100px;
            width: 100px;
            border: 1px solid skyblue;
            position: absolute;
            top: 30px;
            left: 30px;
            background-color: skyblue;
        }
    </style>
</head>

<body>
    <p>定位问题</p>
    <div class="outer">
        <div class="inner"></div>
    </div>
</body>

</html>